<?php

class Zend_View_Helper_HtmlEscape
{
    public $view;

    public function setView(Zend_View_Interface $view)
    {
        $this->view = $view;
    }
    
    function HtmlEscape($str)
    {
        $str = $this->view->escape($str);
    	$str = str_replace("\n", "<br/>", $str);
    	return $str;
    }
}